clc;
A=[1,2,3;4,5,6;7,8,0]
i=find(A>=5)'

[i,j]=find(A>=5)

a1=all(A>=5)
a2=any(A>=5)